#pragma once
#include <WinSock2.h>

class UDP {
public:
    UDP() = default;
    ~UDP();
    bool open(const char* ip, int port);
    void send(char* data, int length);
private:
    SOCKET sender;
    sockaddr_in receiver;
};
